import request from '@/utils/request';

export function login(data) {
  return request({
    url: '/platform/login',
    method: 'post',
    data
  });
}

export function getInfo() {
  return request({
    url: '/platform/getUserInfo',
    method: 'get',
  });
}

export function logout() {
  return request({
    url: '/platform/logout',
    method: 'post'
  });
}

export function apiUserGroupList(data) {
  return request({
    url: '/platform/userGroupList',
    method: 'get',
    data
  });
}
export function apiUserGroupAdd(data) {
  return request({
    url: '/platform/userGroupAdd',
    method: 'post',
    data
  });
}
export function apiUserGroupUpdate(data) {
  return request({
    url: '/platform/userGroupUpdate',
    method: 'post',
    data
  });
}
export function apiUserGroupDel(data) {
  return request({
    url: '/platform/userGroupDel',
    method: 'post',
    data
  });
}
export function apiUserGroupAll(data) {
  return request({
    url: '/platform/userGroupAll',
    method: 'get',
    data
  });
}

export function apiServiceList(data) {
  return request({
    url: '/platform/serviceList',
    method: 'get',
    data
  });
}
export function apiServiceAdd(data) {
  return request({
    url: '/platform/serviceAdd',
    method: 'post',
    data
  });
}
export function apiServiceUpdate(data) {
  return request({
    url: '/platform/serviceUpdate',
    method: 'post',
    data
  });
}
export function apiServiceDel(data) {
  return request({
    url: '/platform/serviceDel',
    method: 'post',
    data
  });
}
export function apiServiceAll(data) {
  return request({
    url: '/platform/serviceAll',
    method: 'get',
    data
  });
}